package com.shareyi.simpleserver.servlet;

import java.util.Map;

public class ApplicationContext {

	/* the paramMap is used to store the parameters which will be used in the application */
	private Map<String,Object> paramMap;
	
	
	/**
	 * get the parameter value by key 
	 * @param key
	 * @return
	 */
	public Object getParamValue(String key){
		return paramMap.get(key);
	}
	
	
	/**
	 * set the parameter value by key
	 * @param key
	 * @param value
	 * @return
	 */
	public Object setParamValue(String key,Object value){
		return paramMap.put(key,value);
	}


	
	
	
	
	public Map<String, Object> getParamMap() {
		return paramMap;
	}


	public void setParamMap(Map<String, Object> paramMap) {
		this.paramMap = paramMap;
	}

}
